export let onPullMixin = {
        data() {
            return {
                //设置默认的分享参数
                share: {
                    title: '七记游乐场',
                    path: `/pages/tabBar/index/index`,
                    imageUrl: 'https://cdn.duyumy.com/accessory/3d99bdecc94191608e50b95ffae431b8d61a2b0b.png?x-oss-process=image/quality,q_10/format,jpg',
                    desc: '关注七记游乐场,给您最快最舒适的体验',
                    content: '关注七记游乐场,给您全新的体验',
                    type: 2
                }
            }
        },
        //分享
        onShareAppMessage(res) {
            let { user_id } = uni.getStorageSync('user_info');
            if (res.from !== "button") {
                let currentPages = getCurrentPages();
                let page = currentPages[currentPages.length - 1]
                const   pageTitle = page.$holder.navigationBar.titleText //报错会自动截取上半部分截图 刚好满足需求
                return {
                    title: pageTitle,
                    path: this.share.path + `?user_id=${user_id}&fullPath=${currentPages[currentPages.length - 1].$page.fullPath}`,
                    imageUrl: this.share.imageUrl,
                    desc: this.share.desc,
                    content: this.share.content,
                    success(res) {
                        uni.showToast({
                            title: '分享成功'
                        })
                    },
                    fail(res) {
                        uni.showToast({
                            title: '分享失败',
                            icon: 'none'
                        })
                    }
                }
            }
        },
	// onPullDownRefresh() {
	//       const pages = getCurrentPages()	
	//       const currentpage = pages[pages.length - 1]
	//       currentpage.onLoad()
	//       currentpage.onShow()
	//       setTimeout(()=>{
	//           uni.stopPullDownRefresh();
	//       },1000)
	//   }
    }